using System;

namespace ClassEntities
{
    [Serializable]
    public class tblDapAnThi
    {
        private int stt;
        private int idCauHoiThi;
        private string img;
        private string media;
        private string noidung;
        public tblDapAnThi()
        { }
        public tblDapAnThi(int stt, int idCauHoiThi, string img, string media, string noidung)
        {
            this.stt = stt;
            this.idCauHoiThi = idCauHoiThi;
            this.img = img;
            this.media = media;
            this.noidung = noidung;
        }
        public int Stt
        {
            get { return this.stt; }
            set
            {
                if (value == null)
                    throw new Exception("stt not allow nullvalue.");
                this.stt = value;
            }
        }
        public int IdCauHoiThi
        {
            get { return this.idCauHoiThi; }
            set { this.idCauHoiThi = value; }
        }
        public string Img
        {
            get { return this.img; }
            set { this.img = value; }
        }
        public string Media
        {
            get { return this.media; }
            set { this.media = value; }
        }
        public string Noidung
        {
            get { return this.noidung; }
            set { this.noidung = value; }
        }
        public override string ToString()
        {
            return this.stt + "; " + this.idCauHoiThi + "; " + this.img + "; " + this.media + "; " + this.noidung + "; ";
        }
        public override bool Equals(Object obj)
        {
            tblDapAnThi me = (tblDapAnThi)obj;
            bool ret = this.Stt.Equals(me.Stt);
            return ret;
        }
        public override int GetHashCode()
        {
            return this.Stt.GetHashCode();
        }

    }
}